<?php
/*
 * @Author       : chaihao
 * @Date         : 2020-06-01 10:58:11
 * @FilePath     : /ai/models/User.php
 */

namespace app\models;

use Yii;

/**
 * This is the model class for table "user.user".
 *
 */
class User extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '`user.user`';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['ID', 'CountryID', 'Activity', 'Level'], 'integer'],
            [['Username', 'Password', 'Nickname', 'Company', 'Position', 'Cellphone', 'Name', 'IDcard'], 'string'],
        ];
    }
}
